'use strict';

function choose_even(collection) {
 let result=[];
 for(let i=0;i<collection.length;i++)
  {
    if (collection[i]==0)
      result.push(collection[i])
    else
      {
        if(collection[i]%2==0)
          {
            result.push(collection[i])
          }
      }
  }
  return result;
}

module.exports = choose_even;
